/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #c00;
    color: white;
    padding: 15px 0;
}

.header-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 24px;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 250px;
}

.search-box button {
    padding: 8px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 导航栏样式 */
.navigation {
    background-color: #900;
    padding: 10px 0;
}

.nav-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation ul {
    display: flex;
}

.navigation li {
    margin-right: 30px;
}

.navigation a {
    color: white;
    font-size: 16px;
    padding: 15px 10px;
}

.navigation a:hover {
    background-color: #700;
    border-radius: 4px;
}

.motto img {
    height: 40px;
}

/* 轮播图样式 */
.banner {
    width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
}

.slideshow-container {
    max-width: 1200px;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    vertical-align: middle;
}

/* 淡入动画 */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* 新闻与公告组合容器 */
.news-notice-container {
    padding: 30px 0;
    background-color: #fff;
}

.news-notice-wrapper {
    display: flex;
    gap: 30px;
}

/* 之江要闻 - 2×2四宫格 */
.news-section {
    flex: 2;
}

.news-section h2 {
    font-size: 22px;
    color: #c00;
    padding-bottom: 10px;
    border-bottom: 2px solid #c00;
    margin-bottom: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.news-item p {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* 通知公告 - 右侧 */
.notice-section {
    flex: 1;
}

.notice-section h2 {
    font-size: 22px;
    color: #c00;
    padding-bottom: 10px;
    border-bottom: 2px solid #c00;
    margin-bottom: 20px;
}

.notice-list {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.notice-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list a {
    font-size: 15px;
    color: #333;
    flex: 1;
    transition: color 0.3s ease;
}

.notice-list a:hover {
    color: #c00;
}

.notice-list span {
    font-size: 13px;
    color: #999;
    margin-left: 15px;
    white-space: nowrap;
}

/* 主内容区 */
.main-content {
    padding: 30px 0;
    background-color: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.content-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.content-item h2 {
    font-size: 18px;
    color: #c00;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.content-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.content-list li:last-child {
    border-bottom: none;
}

.content-list a {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.content-list a:hover {
    color: #c00;
}

.content-list p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 专题网站版块 - 更新后的样式 */
.special-websites {
    padding: 30px 0;
    background-color: #f5f5f5;
}

.special-websites h2 {
    font-size: 22px;
    color: #c00;
    padding-bottom: 10px;
    border-bottom: 2px solid #c00;
    margin-bottom: 20px;
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.website-item {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 170px; /* 统一高度 */
}

.website-item img {
    width: 200px; /* 统一图标大小 */
    height: 150px;
    margin-bottom: 0px;
    object-fit: contain;
}

.website-item:hover {
    background-color: #f0f0f0;
    color: #c00;
    transform: translateY(-3px);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .website-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .website-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 页脚 */
.footer {
    background-color: #333;
    color: #999;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    flex: 1;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-logo {
    flex: 0 0 150px;
    text-align: center;
    margin: 0 30px;
}

.footer-logo img {
    width: 200px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-qrcode {
    flex: 0 0 150px;
    text-align: center;
}

.footer-qrcode img {
    width: 120px;
    margin-bottom: 10px;
}

.footer-qrcode p {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-container, 
    .nav-container, 
    .banner, 
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .news-notice-wrapper {
        flex-direction: column;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .website-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .search-box input {
        width: 180px;
    }
    
    .navigation ul {
        flex-wrap: wrap;
    }
    
    .navigation li {
        margin-right: 15px;
        margin-bottom: 5px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .website-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin: 20px 0;
    }
}